//
//  HuSizeMacro
//  ProjectPublic
//
//  Created by ac hu on 2018/4/11.
//  Copyright © 2018年 ac hu. All rights reserved.
//

#ifndef HuSizeMacro_h
#define HuSizeMacro_h

//尺寸
#define ScreenWide [UIScreen mainScreen].bounds.size.width//屏幕宽
#define ScreenHeight [UIScreen mainScreen].bounds.size.height//屏幕高
#define VIEW_W(VIEW) CGRectGetWidth(VIEW.frame)//视图宽
#define VIEW_H(VIEW) CGRectGetHeight(VIEW.frame)//视图高
#define VIEW_XMIN(VIEW) CGRectGetMinX(VIEW.frame)//视图最小x
#define VIEW_YMIN(VIEW) CGRectGetMinY(VIEW.frame)//视图最小y
#define VIEW_XMAX(VIEW) CGRectGetMaxX(VIEW.frame)//视图最大x
#define VIEW_YMAX(VIEW) CGRectGetMaxY(VIEW.frame)//视图最大y
#define VIEW_CenterX(VIEW) VIEW_W(VIEW)/2.0//视图中心x
#define VIEW_CenterY(VIEW) VIEW_H(VIEW)/2.0//视图中心y

#define Height_Nav             self.navigationController.navigationBar.frame.size.height  //导航栏高
#define Height_Tab             (ISPX ? 83.f : 49.f)  //tabbar高
#define Height_Statusbar             [[UIApplication sharedApplication] statusBarFrame].size.height  //状态栏高
#define Height_Top (Height_Statusbar + Height_Nav)//导航栏顶部总高

#endif /* HuFontMacro_h */
